package com.cnfangmao.masterdata.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 主数据与业务系统字段映射表
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
@TableName("t_basic_data_field_mapping")
public class BasicDataFieldMapping implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 映射Id
     */
    @TableId("mapping_id")
    private String mappingId;
    /**
     * 字段元数据Id
     */
    @TableField("field_id")
    private String fieldId;
    /**
     * 用户Id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 业务字段英文名称
     */
    @TableField("business_field_code")
    private String businessFieldCode;
    /**
     * 业务字段中文名称
     */
    @TableField("business_field_name")
    private String businessFieldName;
    /**
     * 是否不允许为空
     */
    @TableField("is_not_null")
    private Integer isNotNull;
    /**
     * 是否唯一
     */
    @TableField("is_unique")
    private Integer isUnique;
    /**
     * 是否只读
     */
    @TableField("is_only_read")
    private Integer isOnlyRead;
    /**
     * 是否可写
     */
    @TableField("is_only_write")
    private Integer isOnlyWrite;
    /**
     * 枚举类型Id
     */
    @TableField("enum_type_id")
    private String enumTypeId;
    /**
     * 创建时间
     */
    @TableField("created_on")
    private Date createdOn;
    /**
     * 创建人
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 修改时间
     */
    @TableField("modified_on")
    private Date modifiedOn;
    /**
     * 修改人
     */
    @TableField("modified_by")
    private String modifiedBy;


    public String getMappingId() {
        return mappingId;
    }

    public void setMappingId(String mappingId) {
        this.mappingId = mappingId;
    }

    public String getFieldId() {
        return fieldId;
    }

    public void setFieldId(String fieldId) {
        this.fieldId = fieldId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getBusinessFieldCode() {
        return businessFieldCode;
    }

    public void setBusinessFieldCode(String businessFieldCode) {
        this.businessFieldCode = businessFieldCode;
    }

    public String getBusinessFieldName() {
        return businessFieldName;
    }

    public void setBusinessFieldName(String businessFieldName) {
        this.businessFieldName = businessFieldName;
    }

    public Integer getIsNotNull() {
        return isNotNull;
    }

    public void setIsNotNull(Integer isNotNull) {
        this.isNotNull = isNotNull;
    }

    public Integer getIsUnique() {
        return isUnique;
    }

    public void setIsUnique(Integer isUnique) {
        this.isUnique = isUnique;
    }

    public Integer getIsOnlyRead() {
        return isOnlyRead;
    }

    public void setIsOnlyRead(Integer isOnlyRead) {
        this.isOnlyRead = isOnlyRead;
    }

    public Integer getIsOnlyWrite() {
        return isOnlyWrite;
    }

    public void setIsOnlyWrite(Integer isOnlyWrite) {
        this.isOnlyWrite = isOnlyWrite;
    }

    public String getEnumTypeId() {
        return enumTypeId;
    }

    public void setEnumTypeId(String enumTypeId) {
        this.enumTypeId = enumTypeId;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getModifiedOn() {
        return modifiedOn;
    }

    public void setModifiedOn(Date modifiedOn) {
        this.modifiedOn = modifiedOn;
    }

    public String getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(String modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    @Override
    public String toString() {
        return "BasicDataFieldMapping{" +
        "mappingId=" + mappingId +
        ", fieldId=" + fieldId +
        ", userId=" + userId +
        ", businessFieldCode=" + businessFieldCode +
        ", businessFieldName=" + businessFieldName +
        ", isNotNull=" + isNotNull +
        ", isUnique=" + isUnique +
        ", isOnlyRead=" + isOnlyRead +
        ", isOnlyWrite=" + isOnlyWrite +
        ", enumTypeId=" + enumTypeId +
        ", createdOn=" + createdOn +
        ", createdBy=" + createdBy +
        ", modifiedOn=" + modifiedOn +
        ", modifiedBy=" + modifiedBy +
        "}";
    }
}
